package com.gmq.chapter01.daemon;

/**
 * Created by gmq on 2017/08/11.
 *
 * @version 1.0
 * @since 2017/08/11 13:58
 */
public class MyThread extends Thread {

    private int i = 0;

    @Override
    public void run() {
        try {
            while (true) {
                i++;
                System.out.println("i=" + i);
                Thread.sleep(1000);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
